<template>
  <div class="btn">
    <van-button
      type="primary"
      :loading="loading"
      size="large"
      loading-type="spinner"
      loading-text="加载中..."
      round=true
      >{{ title }}</van-button
    >
  </div>
</template>

<script>
export default {
  props: {
    title: {
      default: "点击",
      type: String,
    },

    loading: {
      default: false,
      type: Boolean,
    },
  },
  name: "all-btn",
};
</script>

<style lang="scss">
.btn {
  padding: .3846rem;
  padding-top: 0rem;

  .van-button {
    background-color: black;
    border: none;
    height: .8rem;
  }
}
</style>